﻿using FanaticUnitity.FfmpegZoomPictureTo300KB.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticUnitity.FfmpegZoomPictureTo300KB.Models
{
    public class Image
    {
        public long Length { get; set; }
        public Size Size { get; set; }

        public Image()
        {
            
        }

        public Image(string fileName)
        {
            var size = FfmpegHelper.GetImageSize(fileName);

            var fileInfo = new FileInfo(fileName);
            var length = fileInfo.Length;

            Size = size;
            Length = length;
        }

        public override string ToString()
        {
            return Size.ToString();
        }

    }
}
